package com.woniu.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * emp
 * @author 
 */
public class Emp implements Serializable {
    private Integer empId;

    private Integer emprId;

    private Integer deptId;

    private Integer userId;

    private String empName;

    private Date empHiredate;

    private Float empSal;

    private String empSex;

    private String empPhone;

    private Integer empAge;

    private String empImg;

    private static final long serialVersionUID = 1L;

    public Integer getEmpId() {
        return empId;
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    public Integer getEmprId() {
        return emprId;
    }

    public void setEmprId(Integer emprId) {
        this.emprId = emprId;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public Date getEmpHiredate() {
        return empHiredate;
    }

    public void setEmpHiredate(Date empHiredate) {
        this.empHiredate = empHiredate;
    }

    public Float getEmpSal() {
        return empSal;
    }

    public void setEmpSal(Float empSal) {
        this.empSal = empSal;
    }

    public String getEmpSex() {
        return empSex;
    }

    public void setEmpSex(String empSex) {
        this.empSex = empSex;
    }

    public String getEmpPhone() {
        return empPhone;
    }

    public void setEmpPhone(String empPhone) {
        this.empPhone = empPhone;
    }

    public Integer getEmpAge() {
        return empAge;
    }

    public void setEmpAge(Integer empAge) {
        this.empAge = empAge;
    }

    public String getEmpImg() {
        return empImg;
    }

    public void setEmpImg(String empImg) {
        this.empImg = empImg;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Emp other = (Emp) that;
        return (this.getEmpId() == null ? other.getEmpId() == null : this.getEmpId().equals(other.getEmpId()))
            && (this.getEmprId() == null ? other.getEmprId() == null : this.getEmprId().equals(other.getEmprId()))
            && (this.getDeptId() == null ? other.getDeptId() == null : this.getDeptId().equals(other.getDeptId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getEmpName() == null ? other.getEmpName() == null : this.getEmpName().equals(other.getEmpName()))
            && (this.getEmpHiredate() == null ? other.getEmpHiredate() == null : this.getEmpHiredate().equals(other.getEmpHiredate()))
            && (this.getEmpSal() == null ? other.getEmpSal() == null : this.getEmpSal().equals(other.getEmpSal()))
            && (this.getEmpSex() == null ? other.getEmpSex() == null : this.getEmpSex().equals(other.getEmpSex()))
            && (this.getEmpPhone() == null ? other.getEmpPhone() == null : this.getEmpPhone().equals(other.getEmpPhone()))
            && (this.getEmpAge() == null ? other.getEmpAge() == null : this.getEmpAge().equals(other.getEmpAge()))
            && (this.getEmpImg() == null ? other.getEmpImg() == null : this.getEmpImg().equals(other.getEmpImg()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getEmpId() == null) ? 0 : getEmpId().hashCode());
        result = prime * result + ((getEmprId() == null) ? 0 : getEmprId().hashCode());
        result = prime * result + ((getDeptId() == null) ? 0 : getDeptId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getEmpName() == null) ? 0 : getEmpName().hashCode());
        result = prime * result + ((getEmpHiredate() == null) ? 0 : getEmpHiredate().hashCode());
        result = prime * result + ((getEmpSal() == null) ? 0 : getEmpSal().hashCode());
        result = prime * result + ((getEmpSex() == null) ? 0 : getEmpSex().hashCode());
        result = prime * result + ((getEmpPhone() == null) ? 0 : getEmpPhone().hashCode());
        result = prime * result + ((getEmpAge() == null) ? 0 : getEmpAge().hashCode());
        result = prime * result + ((getEmpImg() == null) ? 0 : getEmpImg().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", empId=").append(empId);
        sb.append(", emprId=").append(emprId);
        sb.append(", deptId=").append(deptId);
        sb.append(", userId=").append(userId);
        sb.append(", empName=").append(empName);
        sb.append(", empHiredate=").append(empHiredate);
        sb.append(", empSal=").append(empSal);
        sb.append(", empSex=").append(empSex);
        sb.append(", empPhone=").append(empPhone);
        sb.append(", empAge=").append(empAge);
        sb.append(", empImg=").append(empImg);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}